Commit
ed7d4928e5 fixed some width-for-height cases in popup menu items,
but did not consider RTL locales. Fix this.
https://bugzilla.gnome.org/show_bug.cgi?id=659827
}
extraWidth = availWidth - naturalWidth;
} else {
- if (child.span == -1)
- availWidth = box.x2 - x;
- else
+ if (child.span == -1) {
+ if (direction == St.TextDirection.LTR)
+ availWidth = box.x2 - x;
+ else
+ availWidth = x - box.x1;
+ } else {
availWidth = naturalWidth;
+ }
extraWidth = 0;
}